package lanqiao;

import java.util.Scanner;

public class test5 {
    //1588 补零输出
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        String num = scan.next();
        int n=8-num.length();
        for (int i = 0; i < n; i++) {
            System.out.print("0");
        }
        System.out.print(num);

    }
}
